package com.ruoyi.sys.energ.entity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 

预警策略设置对象 tb_energ_warning
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbEnergWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long ewId;

    /** 策略编号 */
    @Excel(name = "策略编号")
    private String ewCid;

    /** 策略名称*/
    @Excel(name = "策略名称 ")
    private String ewName;

    /** 设备类型(0:电表1：水表) */
    @Excel(name = "设备类型(0:电表1：水表)")
    private Long ewType;

    /** 预警阈值 */
    @Excel(name = "预警阈值")
    private BigDecimal ewValue;

    /** 监测设备数（ 这个并不是一个字段，而是一个统计2. 点我们点击这个数字的时候，会显示所有适用此策略的设备） */
    @Excel(name = "监测设备数", readConverterExp = "这=个并不是一个字段，而是一个统计 2.,点=我们点击这个数字的时候，会显示所有适用此策略的设备 ")
    private Long ewNum;

    /** 备注 */
    @Excel(name = "备注")
    private String ewText;

    public void setEwId(Long ewId) 
    {
        this.ewId = ewId;
    }

    public Long getEwId() 
    {
        return ewId;
    }
    public void setEwCid(String ewCid) 
    {
        this.ewCid = ewCid;
    }

    public String getEwCid() 
    {
        return ewCid;
    }
    public void setEwName(String ewName) 
    {
        this.ewName = ewName;
    }

    public String getEwName() 
    {
        return ewName;
    }
    public void setEwType(Long ewType) 
    {
        this.ewType = ewType;
    }

    public Long getEwType() 
    {
        return ewType;
    }
    public void setEwValue(BigDecimal ewValue) 
    {
        this.ewValue = ewValue;
    }

    public BigDecimal getEwValue() 
    {
        return ewValue;
    }
    public void setEwNum(Long ewNum) 
    {
        this.ewNum = ewNum;
    }

    public Long getEwNum() 
    {
        return ewNum;
    }
    public void setEwText(String ewText) 
    {
        this.ewText = ewText;
    }

    public String getEwText() 
    {
        return ewText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ewId", getEwId())
            .append("ewCid", getEwCid())
            .append("ewName", getEwName())
            .append("ewType", getEwType())
            .append("ewValue", getEwValue())
            .append("ewNum", getEwNum())
            .append("ewText", getEwText())
            .toString();
    }
}
